{ INFORMATICS.MCCME.RU
  Problem statement: http://informatics.mccme.ru/moodle/mod/statements/view3.php?chapterid=3129
  Verdict: Accepted
}
uses SysUtils, Math;
 
var
	i,ls:longint;
	s:string;
 
begin
reset(input,'input.txt');
rewrite(output,'output.txt');
readln(s);
ls:=length(s);
i:=1;
while i<=ls do begin
	s[i]:='$';
	inc(i,3);
end;
for i:=1 to ls do
	if s[i]<>'$' then write(s[i]);
writeln;
end.